package interpreter.practice_02;

import java.util.HashMap;

/**
 * 抽象类表达式
 *
 * @author yi qiang
 * @date 2021/6/20 21:59
 */
public class SymbolExpression extends AbstractExpression {


    protected AbstractExpression left;
    protected AbstractExpression right;

    public SymbolExpression( AbstractExpression left,AbstractExpression right){
        this.left=left;
        this.right=right;
    }

    /**
     * 解释公式
     * @param val 运算参数 {a=10,b=20}
     * @return 运算结果
     */
    @Override
    public int interpreter(HashMap<String,Integer> val) {
        return 0;
    }

}
